FROM java:8
EXPOSE 9999

VOLUME /tmp
VOLUME /upload
VOLUME /ipRegion
VOLUME /lib

ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xmx1g -Dloader.path=/lib"
RUN ln -sf /usr/share/zoneinfo/{TZ} /etc/localtime && echo "{TZ}" > /etc/timezone

ADD eblog-0.0.1-SNAPSHOT.jar /app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT java ${JAVA_OPTS} -jar /app.jar
